package com.nwcl.common.constant;


import java.util.HashMap;
import java.util.Map;

public class Constant {
    //是否有效
    public static class isValid {
        public static int valid = 1;//有效
        public static int notValid = 0;//无效
    }

    //商品状态
    public static class GoodsStatus {
        public static int up = 1;//上架
        public static int down = 2;//下架
    }

    //预约状态
    public static class SubscribeStatus {
        public static int normal = 1;//正常
        public static int cancel = 2;//取消
        public static int finish = 3;//完成
        public static Map<Integer, String> valMap = new HashMap<>();
        static {
            valMap.put(normal, "正常");
            valMap.put(cancel, "取消");
            valMap.put(finish, "完成");
        }
    }

    //资源类型
    public static class ResourcesType {
        public static int image = 1;//图片
        public static int video = 2;//视频
    }

    //资源所属类型
    public static class ResourcesPidType {
        public static int space = 0;//空间
        public static int restaurant = 1;//餐厅
        public static int room = 2;//包房
        public static int dishes = 3;//菜品
        public static int goods = 4;//商品
        public static Map<Integer, String> pidTypeFolderMap = new HashMap<>();

        static {
            //0.空间,1.餐厅,2.包房,3菜品,4.商品
            pidTypeFolderMap.put(space, "space");//空间
            pidTypeFolderMap.put(restaurant, "restaurant");//餐厅
            pidTypeFolderMap.put(room, "room");//包房
            pidTypeFolderMap.put(dishes, "dishes");//菜品
            pidTypeFolderMap.put(goods, "goods");//商品
        }
    }

    //预约业务类型
    public static class SubscribeBusinessType {
        public static int room = 1;//包房
        public static Map<Integer, String> valMap = new HashMap<>();
        static {
            valMap.put(room, "包房");
        }
    }
    //订单类型
    public static class OrderType {
        public static int integral = 1;//积分订单
    }
    //订单来源类型
    public static class OrderSourceType {
        public static int integral = 1;//积分兑换
    }
    //订单状态
    public static class OrderStatus {
        public static int pend = 1;//待付款
        public static int pay = 2;//已支付
        public static int finish = 3;//已完成
        public static int cancel = 4;//已取消
        public static int refund = 5;//已退款
        public static Map<Integer, String> valMap = new HashMap<>();
        static {
            valMap.put(pend, "待付款");
            valMap.put(pay, "已支付");
            valMap.put(finish, "已完成");
            valMap.put(cancel, "已取消");
            valMap.put(refund, "已退款");
        }
    }
    //订单流水类型
    public static class OrderFlowType {
        public static int in = 1;//进
        public static int out = 2;//出
    }

    //订单流水三方订单类型
    public static class OrderFlowThirdType {
        public static int wx = 1;//微信
    }

    //订单流水类型
    public static class UserIntegralFlowType{
        public static int add = 1;//增加
        public static int sub = 2;//减少
    }
    //订单流水业务类型
    public static class UserIntegralFlowBusinessType{
        public static int subscribe = 1;//预约奖励
        public static int cash = 2;//商品兑换
    }

    //优惠券类型
    public static class Coupons{
        public static int cashCoupon = 1;//返现券
        public static int voucher = 2;//抵扣券
        public static Map<Integer, String> valMap = new HashMap<>();
        static {
            valMap.put(cashCoupon, "返现券");
            valMap.put(voucher, "抵扣券");
        }
    }

    //优惠券领取状态
    public static class CouponsReceiveStatus{
        public static int toReceive = 0;//待领取
        public static int pend = 1;//待使用
        public static int used = 2;//已使用
        public static int expired = 3;//已过期
        public static Map<Integer, String> valMap = new HashMap<>();
        static {
            valMap.put(toReceive, "待领取");
            valMap.put(pend, "待使用");
            valMap.put(used, "已使用");
            valMap.put(expired, "已过期");
        }
    }

    //用户角色
    public static class UserRole {
        public static int admin = 1;//系统管理员
        public static int restaurant = 2;//餐厅管理员
    }

}
